using System.Collections.Generic;
using Provausio.Common.Objects;
using TrainingManagement.api.Models.Data.CRUD;
using TrainingManagement.api.Models.Data.CRUD.TrainingRecord;

namespace TrainingManagement.api.Models.BusinessLogic.TrainingRecord
{
    public class TrainingRecordByEmployeeOperation : BusinessOperation<int, List<BusinessObjects.TrainingRecord>>
    {
        readonly TrainingRecordSelectByEmployeeIdDataSource _byEmployeeId = new TrainingRecordSelectByEmployeeIdDataSource();

        public override List<BusinessObjects.TrainingRecord> Run(int input)
        {
            return _byEmployeeId.Execute(input);
        }
    }
}